package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName s_question
 */
@TableName(value ="s_question")
@Data
public class SQuestion implements Serializable {
    /**
     * 题目信息表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 题干
     */
    @TableField(value = "question")
    private String question;

    /**
     * 题目类型外键(0:单选 1:多选 2:判断 3:简答)
     */
    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 答案
     */
    @TableField(value = "answer_txt")
    private String answerTxt;

    /**
     * 0:正常 1:下架
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 课程外键
     */
    @TableField(value = "sub_id")
    private Integer subId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String[] answer;
}